.class Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;
.super Landroid/webkit/WebViewClient;
.source "WebViewActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/teewoo/app/bus/ui/WebViewActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "myWebViewClient"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;


# direct methods
.method private constructor <init>(Lcom/teewoo/app/bus/ui/WebViewActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 197
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/teewoo/app/bus/ui/WebViewActivity;Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 197
    invoke-direct {p0, p1}, Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;-><init>(Lcom/teewoo/app/bus/ui/WebViewActivity;)V

    return-void
.end method


# virtual methods
.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .locals 8
    .parameter "view"
    .parameter "url"

    .prologue
    const/4 v7, 0x1

    .line 200
    const-string v2, "htm"

    invoke-virtual {p2, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, ".wml"

    invoke-virtual {p2, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, ".html"

    invoke-virtual {p2, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, "/"

    invoke-virtual {p2, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string v2, ".jsp"

    invoke-virtual {p2, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    .line 201
    :cond_0
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    iget-object v3, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    const/4 v4, 0x0

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    const v6, 0x7f080011

    invoke-virtual {v5, v6}, Lcom/teewoo/app/bus/ui/WebViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v5

    invoke-static {v3, v4, v5, v7, v7}, Landroid/app/ProgressDialog;->show(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZZ)Landroid/app/ProgressDialog;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$0(Lcom/teewoo/app/bus/ui/WebViewActivity;Landroid/app/ProgressDialog;)V

    .line 202
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v2, p2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$1(Lcom/teewoo/app/bus/ui/WebViewActivity;Ljava/lang/String;)V

    .line 203
    invoke-virtual {p1, p2}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 204
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$2(Lcom/teewoo/app/bus/ui/WebViewActivity;)Landroid/app/ProgressDialog;

    move-result-object v2

    if-eqz v2, :cond_1

    .line 205
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-static {v2}, Lcom/teewoo/app/bus/ui/WebViewActivity;->access$2(Lcom/teewoo/app/bus/ui/WebViewActivity;)Landroid/app/ProgressDialog;

    move-result-object v2

    invoke-virtual {v2}, Landroid/app/ProgressDialog;->dismiss()V

    .line 211
    :cond_1
    :goto_0
    return v7

    .line 207
    :cond_2
    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    .line 208
    .local v1, uri:Landroid/net/Uri;
    new-instance v0, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {v0, v2, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 209
    .local v0, intent:Landroid/content/Intent;
    iget-object v2, p0, Lcom/teewoo/app/bus/ui/WebViewActivity$myWebViewClient;->this$0:Lcom/teewoo/app/bus/ui/WebViewActivity;

    invoke-virtual {v2, v0}, Lcom/teewoo/app/bus/ui/WebViewActivity;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method
